package com.gljx.web.service;

import com.gljx.web.Entity.RefuelCardReg;

import java.util.List;
import java.util.Map;

public interface RefuelCardRegService {
	
	
	Map<String, Object> selectPageCount(String psql);

    Map<String, Object> selectPage(int pindex, String psql, int psize);
    /**
     * 获取最大编号
     * @return
     */
    String selectFnumber(String companyId);
    /**
     * 添加加油卡加油登记
     * @param refuelCardReg
     * @param fseq
     * @param carId
     * @param cfqty
     * @param cfprice
     * @param cfamount
     * @param cfdesc
     * @return
     */
    int addRefuelCardReg(RefuelCardReg refuelCardReg,String [] fseq,String [] carId,String [] cfqty,String [] cfprice,String [] cfamount,String [] cfdesc,
                         String []cftrainid,String []cfkemu,String []cfdepname,String[]cfgroupid,String[] cfteamid,String []cfoilspecid,String[]cfcartype,String[] cfbizdate);
    /**
     * cftrainid   cfgroupid cfteamid cfoilspecid 此皆为名称并非fid
     */


    /**
     * 根据fid删除加油卡加油登记
     * @param fid
     * @return
     */
    int deleteRefuelCardRegByFid(String fid);
    
    /**
     * 根据fid查找加油卡加油登记
     * @param fid
     * @return
     */
    RefuelCardReg selRefuelCardRegByFid(String fid);
    
    /**
     * 修改
     * @param refuelCardReg
     * @param fseq
     * @param carId
     * @param cfqty
     * @param cfprice
     * @param cfamount
     * @param cfdesc
     * @return
     */
    int updateRefuelCardReg(RefuelCardReg refuelCardReg,String [] fseq,String [] carId,String [] cfqty,String [] cfprice,String [] cfamount,String [] cfdesc,
                            String []cftrainid,String []cfkemu,String []cfdepname,String[]cfgroupid,String[] cfteamid,String []cfoilspecid,String[]cfcartype,String[] cfbizdate);
    
    /**
     * 审核
     */
    int updateRefuelCardReg(RefuelCardReg refuelCardReg);

    /**
     * 查询叫
     * @param companyId
     * @param fnumber
     * @param fdescription
     * @param beginTime
     * @param endTime
     * @return
     */
    List<RefuelCardReg> selectRefuelCardReg(String companyId,String fnumber,String fdescription ,String beginTime,String endTime);
}
